package test.unit;

import com.caucho.hessian.client.HessianProxyFactory;
import com.etl.user.service.IUserService;
import com.xr.util.Utils;
import org.junit.Test;
import test.base.BaseTest;

/**
 * @author Arnold Yang
 * @since 2018-07-30
 */
public class UserTestUnit extends BaseTest {

  @Test
  public void test_signup() throws Exception {

//    String url = "http://localhost:11010/user_service";
//
//    HessianProxyFactory factory = new HessianProxyFactory();
//    IUserService basic = (IUserService) factory.create(IUserService.class, url);
//    basic.signup("54631321");
    this.post(this.getUrl("/user/signup"), Utils.newHashMap("mobileNumber", "17" ));
  }
}
